package com.example.hospitalsystem.pojo.dto.auth;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

@Schema(description = "通过邮箱修改密码")
@Data
public class ChangePwdByEmailDto {

    @Schema(description = "邮箱")
    @NotEmpty(message = "邮箱不能为空")
    private String email;

    @Schema(description = "验证码")
    @NotEmpty(message = "验证码不能为空")
    private String captcha;

    @Schema(description = "新密码")
    @NotEmpty(message = "新密码不能为空")
    private String newPassword;
}
